/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.sys.util.tree;

import org.richfaces.model.TreeNodeImpl;

/**
 *
 * @author Administrator
 */
public class MyTreeNodeImpl extends TreeNodeImpl {

    private Object data = new Object();

    public MyTreeNodeImpl() {
        super();
    }

    public MyTreeNodeImpl(boolean leaf, Object data) {
        super(leaf);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    @Override
    public String toString() {
        return super.toString() + " >> " + data;
    }
}
